'''
需求
输入文件的名字，然后程序自动完成对文件进行备份
'''
inputName = input('输入文件名')

index = inputName.rfind('.')
copyName = inputName[:index] +'[复制]' + inputName[index:]

inputFile = open(inputName)

copeFile = open(copyName,'w')

line = inputFile.readline()
while line:
    copeFile.write(line)
    line = inputFile.readline()
    
inputFile.close()
copeFile.close()